'use strict'
const client = require('scp2')
console.log('开始部署中...')
client.scp(
  'dist/',
  {
    host: '47.103.159.14',
    port:'1314',
    username: 'root',
    password: 'wxwlw.net@2019',
    path: '/www/iwant-wexin-web/dist' // 文件存放在测试机上的路径，与ng配置的路径一直
  },
  function(err) {
    console.log(err === null || err === undefined ? '部署成功！' : err)
  }
)

